﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="Reminder.aspx.vb" Inherits="Reminder" title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div >
    <h1>Reminder</h1>
<hr />


<asp:Label ID="lblStaffUID" runat="server" Visible="false" />
<asp:Label ID="lblStaffType" runat="server" Visible="false" />
<div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>

<p><%--Description of the page--%></p>
<div>
<table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
        
            <table class="ResultPanelHeader" border="0" width="100%">
                <tr>
                    <td><asp:label ID="lblHeadNoOfItem" runat="server" text="0" />&nbsp;items total</td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
           
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay">
            <thead>
                <tr>
                    <th scope="col" id="first-col"><strong><asp:LinkButton ID="lnkAddress" runat="server" Text="Address▼" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkAffected" runat="server" Text="Reminder On▼" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkType" runat="server" Text="Reminder Type▼" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkCreateDate" runat="server" Text="Date▼" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col">&nbsp;</th>
                </tr>
            </thead> 
            <tbody>
                <asp:Repeater ID="repReminder" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td id="first-col">
                                <asp:Label ID="lblRepReminderUID" runat="server" Text='<%#Container.dataitem("ReminderId").tostring %>' Visible="false" />
                                <asp:Label ID="lblRepAddress" runat="server" Text='<%#Container.dataitem("Address").tostring %>' />                           
                            </td>
                            <td><asp:LinkButton ID="lnkRepAffectedRecord" runat="server" Text='<%#Container.dataitem("AffectedValue").tostring %>' CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' CommandName="ReferItem" style="text-decoration:none" />
                                <asp:Label ID="lblRepAffectedId" runat="server" Text='<%#Container.dataitem("AffectedId").tostring %>' Visible="false" />
                            </td>
                            <td><asp:Label ID="lblRepType" runat="server" Text='<%#Container.DataItem("Type").ToString%>' /></td>
                            <td><asp:Label ID="lblRepCreateDate" runat="server" Text='<%# Bind("CreateDate","{0:dd-MMM-yyyy}") %>' /></td>                           
                            <td><asp:ImageButton ID="imgRepDelete" runat="server" ImageUrl="~/images/style01/DeleteButton.png" style="vertical-align:middle;" AlternateText="Delete" CommandName="DeleteItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' /></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               </tbody>
            </table>
            
      </td>
    </tr>
    <tr>
        <td>
            <table class="ResultPanelFooter" width="100%">
                <tr>
                    <td ><asp:label ID="lblFootNoOfItem" runat="server" text="0" />&nbsp; items total</td>
                    <td align="center" valign="middle">
                        <asp:Panel ID="pnlNavigation" runat="server" style="text-align:center; vertical-align:middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png"   ID="btnMoveFirst"  runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png"    ID="btnPrevious"   runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" style="text-align:center; vertical-align:middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" style="vertical-align: middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png"      ID="btnGo"          runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png"  ID="btnNext"        runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png"    ID="btnMoveLast"    runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" style="vertical-align:middle;"/>
                      </asp:Panel>
                    </td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
 <%--added @ 2/4/2011 by minginn - to allow user sort the result--%>
<asp:Label ID="lblHidSortType" runat="server" Visible="false" Text=" ORDER BY Address DESC, AffectedValue DESC, Type DESC, CreateDate DESC" />

    </div>
    </div>
</asp:Content>


